#pragma once
#include "Sprite.h"
#include "Timer.h"
#include "ximage.h"

class CClock :	public CSprite
{
public:
	enum Direction
	{
        Direction_Left,
		Direction_Top,
		Direction_Right,
		Direction_Bottm,
	};
public:
	CClock(void);
	~CClock(void);

	virtual void Render(CDC *pDC);
	void StartClock(int nSecond);
	BOOL Timeout();
	void StopClock();
	void SetImage(CxImage *pImgClock, CxImage *pImgNumber, CxImage *pImgArrow);
	void SetDirection(int nDirection) {m_nDirection = nDirection;};
public:
	CTimer m_timer;
	CxImage *m_pImgClock;
	CxImage *m_pImgNumber;
	CxImage *m_pImgArrow;
	int m_nDirection;
};
